<template>
  <div  v-if="Object.keys(itemparmas).length !== 0"  class="sizeall">
    <div>
      <table class="sizeinfo">
      <tr class="first" v-for="(td,index) in itemparmas.tables[0]" :key="index">
        <td class="first1" v-for="(item,index) in td" :key='item+index'>{{item}}</td>
      </tr>
    </table>
    </div>
    <div class="suppleinfo">
    <table>
      <tr class="infotr" v-for="(item,index) in itemparmas.set" :key="item+index">
        <div class="info">
          <td class="infovalue">
           <div><span class="infoitem">{{item.key}}</span></div> 
           <div><span class="text">{{item.value}}</span></div></td>
        </div> 
      </tr>
    </table>
  </div>
   <!-- <img v-for="(item,index) in " :src=""> -->
  </div>
  
</template>

<script>
export default {
  name:'chidensizeparmas',
  props:{
    itemparmas:{
      type:Object,
      default(){
        return {}
      }
    }
  }
}
</script>

<style scoped>
 .first:nth-child(1){
   background-color: brown; ;
   color: white;
 }
 .first1:nth-child(1){
      color: var(--color-text);
 }
 .sizeall{
   margin: 40px 5px;
 }
 .sizeinfo tr{
   text-align: center;
   border-bottom: 1px solid rgb(192,192,192);
   height: 60px;
   /* width: 100vw; */
 }
 .sizeinfo td{
   width: 100vw; 
   font-size: 16px;
 }
 .suppleinfo tr{
  width: 100vw;
  height: 60px;
  border-bottom: 1px solid rgb(192,192,192);
  text-align: center;
  line-height: 70px;
  margin: 0 15px;
 }
 .infovalue{
   display: flex;
  
 }
 .infoitem{
   margin-left: 15px;
   margin-right: 70px;
    
 }
 .info{
   height: 60px;
   overflow: hidden;
 
  
 }
 .info span{
    text-overflow: ellipsis;
     white-space: nowrap;
 }
 .text{
   color: var(--color-text);
 }
 .infotr{
   width: 100vw;
 }
</style>